Repository navigation
DJ Set Planner: sort a playlist into a harmonic set by key and BPM - #86
Merged
Merged
Conversation
- The BPM detector now reads the tempo from a dropped or chosen audio file (MP3, WAV, FLAC, AAC, OGG, M4A), decoded in the browser, next to the existing microphone mode. Shows half/double-time reading and the key. - Short files (loops, clips) are read from the start instead of returning nothing; readings under 78 BPM are doubled (slow reading stays as the alternative), which fixes half-tempo results on several house/dnb tracks. - Beatless audio and non-audio files get a clear error. - bpm_file_analyzed / bpm_file_failed events to GA4 and Vercel via a new trackEverywhere() helper. - Key analyzer title, meta and schema rewritten around "Key Finder". Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- /tools/set-planner: drop a folder or many tracks; each is decoded on the device and analysed with the key finder and BPM detector code in a small Web Worker pool. Progress, ETA, stop, per-file errors with retry, duplicate/non-audio skipping, 500-track cap, set saved in localStorage. - Ordering (src/lib/set-planner.ts): Camelot + tempo transition cost, nearest-neighbour from every start plus 2-opt/or-opt within a time budget; "Build energy" climbs through tempo steps; pin an opener; manual move/remove. Every transition rated. - Export CSV (formula-safe, BOM), M3U8 with folder-relative paths, copy tracklist. Artist/title from ID3v2 or the file name. - Featured in desktop menus, mobile Popular tools, homepage banner and grid, /tools, footer, sitemap; links from key finder, Camelot tool and guides. New guide /guides/dj-set-planner. OG image. - GA4 + Vercel events: set_planner_files_added, _analysis_done, _reordered, _exported (GA4 only: _track_failed). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
…-bdqd1u-set-planner # Conflicts: # src/app/tools/page.tsx # src/lib/analytics.ts
This branch was successfully deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Requested by Seb · project thread
What
A new tool at
/tools/set-planner. Drop a folder or a stack of tracks and the planner:How it copes with large crates and bad input:
._files and duplicates are skipped, with a notice.Ordering
src/lib/set-planner.tshas no browser dependencies. The cost of a transition is the Camelot relation plus a tempo penalty:The search runs nearest-neighbour from every start, then 2-opt and or-opt moves within a 600 ms budget.
Featured and SEO
/guides/dj-set-planner, "How to Plan a DJ Set by Key and BPM (New Free Set Planner)", which announces the tool and explains how it works.Tracking
These go to GA4 and Vercel through
trackEverywhere(), the same pair assupport_clicked:set_planner_files_added(count,source)set_planner_analysis_done(tracks,failed,seconds)set_planner_reordered(mode)set_planner_exported(format,tracks)set_planner_track_failed(reason) goes to GA4 only, to keep the Vercel event count down.tool_usedis sent withset_planner.Testing
All tests ran in headless Chromium on the mini PC, with royalty-free incompetech.com tracks.
readme.txtand a._file. It finished in 30 s with a peak JS heap of about 420 MB. The M3U kept theSub/paths. Adding the same folder again reported 64 duplicates.next buildpasses and the worker chunk loads undernext start.tscis clean. Lint shows the same 5 errors and 3 warnings asmain, none in the new files.🤖 Generated with Claude Code